package com.dream.technology.service;

import com.alibaba.fastjson.JSONObject;
import com.dream.technology.components.context.FlowContext;
import com.dream.technology.db.entity.RcThirdPartyCommunication;
import com.dream.technology.db.entity.RcThirdPartyCommunicationQuery;
import com.dream.technology.db.entity.RcThirdPartyCommunicationWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 描述：
 *
 * @author chen_q_i@163.com
 * 2018/12/28 : 11:14.
 * @version : 1.0
 */
public interface RcThirdPartyCommunicationService {

    int countByExample(RcThirdPartyCommunicationQuery example);

    int deleteByExample(RcThirdPartyCommunicationQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcThirdPartyCommunicationWithBLOBs record);

    int insertSelective(RcThirdPartyCommunicationWithBLOBs record);

    List<RcThirdPartyCommunicationWithBLOBs> selectByExampleWithBLOBs(RcThirdPartyCommunicationQuery example);

    List<RcThirdPartyCommunication> selectByExample(RcThirdPartyCommunicationQuery example);

    RcThirdPartyCommunicationWithBLOBs selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcThirdPartyCommunicationWithBLOBs record, @Param("example") RcThirdPartyCommunicationQuery example);

    int updateByExampleWithBLOBs(@Param("record") RcThirdPartyCommunicationWithBLOBs record, @Param("example") RcThirdPartyCommunicationQuery example);

    int updateByExample(@Param("record") RcThirdPartyCommunication record, @Param("example") RcThirdPartyCommunicationQuery example);

    int updateByPrimaryKeySelective(RcThirdPartyCommunicationWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(RcThirdPartyCommunicationWithBLOBs record);

    int updateByPrimaryKey(RcThirdPartyCommunication record);



    int saveTianJiReq(FlowContext flowContext, String url, String respBody);
    int saveMoxieReq(FlowContext flowContext, String url, String respBody);
     int saveByJson(FlowContext flowContext, JSONObject jsonObject);

}
